{extend name="property@base"/}
{block name='content'}
	<div class="weui-tab">
      <div class="weui-tab__bd">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
          <iframe src="{:url('property/main/workorder')}" class='frame'></iframe>
        </div>
        <!-- <div id="tab2" class="weui-tab__bd-item">
          <iframe src="{:url('property/main/workorder')}" class='frame'></iframe>
        </div> -->
        <div id="tab3" class="weui-tab__bd-item">
          <iframe src="{:url('property/record_list/index')}" class='frame'></iframe>
        </div>
        <div id="tab4" class="weui-tab__bd-item">
          <iframe src="{:url('property/myinfo/index')}" class='frame'></iframe>
        </div>
      </div>

      <div class="weui-tabbar">
        <a href="#tab1" class="weui-tabbar__item weui-bar__item--on">
          <!-- <span class="weui-badge" style="position: absolute;top: -.4em;right: 1em;">8</span> -->
          <div class="weui-tabbar__icon">
            <img src="/static/property/images/icon_nav_button.png" alt="">
          </div>
          <p class="weui-tabbar__label">新增派工</p>
        </a>
        <!-- <a href="#tab2" class="weui-tabbar__item">
          <div class="weui-tabbar__icon">
            <img src="/static/property/images/icon_nav_msg.png" alt="">
          </div>
          <p class="weui-tabbar__label">新增</p>
        </a> -->
        <a href="#tab3" class="weui-tabbar__item">
          <div class="weui-tabbar__icon">
            <img src="/static/property/images/icon_nav_article.png" alt="">
          </div>
          <p class="weui-tabbar__label">派工列表</p>
        </a>
        <a href="#tab4" class="weui-tabbar__item">
          <div class="weui-tabbar__icon">
            <img src="/static/property/images/icon_nav_cell.png" alt="">
          </div>
          <p class="weui-tabbar__label">个人信息</p>
        </a>
      </div>
    </div>
{/block}
{block name='script'}
	<script type='text/javascript'>
		$(function(){
			var type = "{:input('type')}";
			if(type=='add'){
				$("a[href='#tab1']").click();
			}else if(type=='list'){
				$("a[href='#tab3']").click();
			}else{
				$("a[href='#tab4']").click();
			}
		});
		
	</script>
{/block}	